<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<title>易道名片管理-客户列表</title>
</head>
<body>
<table style="text-align:center" border="1">
	<tr>
		<td class="col-title">
			name
		</td>
		<td class="col-title">
			gender
		</td>
		<td class="col-title">
			description
		</td>
		<td class="col-title">
			create time
		</td>
		<td class="col-title">
			action
		</td>
	</tr>
	<c:forEach items="${customers}" var="customer">
	<tr>
		<td class="col-content">
			<c:out value="${customer.name}"/>
		</td>
		<td class="col-content">
			<c:out value="${customer.gender}"/>
		</td>
		<td class="col-content">
			<c:out value="${customer.jobTitle}"/>
		</td>
		<td class="col-content">
			<fmt:formatDate value="${customer.createTime.time}" type="date" pattern="yyyy-MM-dd"/>
		</td>
		<td class="col-content">
			<a href="<%=request.getContextPath()%>/main/customers/<c:out value="${customer.id}"/>/edit">
				edit
			</a>
			|
			<a href="<%=request.getContextPath()%>/main/customers/<c:out value="${customer.id}"/>/delete">
				delete
			</a>
			|
			<a href="<%=request.getContextPath()%>/main/customers/<c:out value="${customer.id}"/>/print">
				print
			</a>
		</td>
	</tr>
	</c:forEach>
</table>
</body>
</html>